/* 哥特风格的Markdown主题 */
.markdown-theme-gothic {
  font-family: "Crimson Text", "Garamond", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #f5f5f5;
  padding: 20px;
  max-width: 740px;
  margin: 0 auto;
  letter-spacing: 0.01em;
  background-image: url("");
}

.markdown-theme-gothic h1,
.markdown-theme-gothic h2,
.markdown-theme-gothic h3,
.markdown-theme-gothic h4,
.markdown-theme-gothic h5,
.markdown-theme-gothic h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", serif;
}

.markdown-theme-gothic h1 {
  font-size: 2.2em;
  line-height: 1.1;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 1em;
  border-bottom: 1px solid #000;
  padding-bottom: 0.3em;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.markdown-theme-gothic h2 {
  font-size: 1.7em;
  line-height: 1.3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.2em;
}

.markdown-theme-gothic h3 {
  font-size: 1.4em;
}

.markdown-theme-gothic h4 {
  font-size: 1.2em;
}

.markdown-theme-gothic p {
  margin-bottom: 1.3em;
  text-align: justify;
}

.markdown-theme-gothic p:first-of-type::first-letter {
  font-size: 3.5em;
  line-height: 0.8;
  float: left;
  margin-right: 0.1em;
  font-family: "Cinzel Decorative", "Cinzel", serif;
}

.markdown-theme-gothic a {
  color: #5d0000;
  text-decoration: none;
  border-bottom: 1px solid rgba(93, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.markdown-theme-gothic a:hover {
  color: #900;
  border-bottom: 1px solid #900;
}

.markdown-theme-gothic blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  color: #333;
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 3px solid #5d0000;
  font-style: italic;
  position: relative;
}

.markdown-theme-gothic blockquote:before {
  content: "❝";
  font-size: 2em;
  color: rgba(93, 0, 0, 0.2);
  position: absolute;
  top: -0.2em;
  left: 0.1em;
}

.markdown-theme-gothic code {
  font-family: "Courier New", monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
}

.markdown-theme-gothic pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 16px;
  border-radius: 2px;
  border-left: 3px solid #5d0000;
  margin: 1.2em 0;
  overflow-x: auto;
}

.markdown-theme-gothic pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-gothic img {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
  border: 5px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.markdown-theme-gothic hr {
  border: none;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  margin: 2em 0;
}

.markdown-theme-gothic ul {
  list-style-type: square;
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-gothic ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-gothic li {
  margin-bottom: 0.5em;
}

.markdown-theme-gothic table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.markdown-theme-gothic table th,
.markdown-theme-gothic table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  text-align: left;
}

.markdown-theme-gothic table th {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9em;
}

.markdown-theme-gothic table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 暗色模式 */
.dark-mode .markdown-theme-gothic {
  color: #d0d0d0;
  background-color: #1a1a1a;
  background-image: url("");
}

.dark-mode .markdown-theme-gothic h1,
.dark-mode .markdown-theme-gothic h2,
.dark-mode .markdown-theme-gothic h3,
.dark-mode .markdown-theme-gothic h4,
.dark-mode .markdown-theme-gothic h5,
.dark-mode .markdown-theme-gothic h6 {
  color: #f0f0f0;
}

.dark-mode .markdown-theme-gothic h1 {
  border-bottom: 1px solid #333;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.dark-mode .markdown-theme-gothic h2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-gothic a {
  color: #ff6666;
  border-bottom: 1px solid rgba(255, 102, 102, 0.3);
}

.dark-mode .markdown-theme-gothic a:hover {
  color: #ff9999;
  border-bottom: 1px solid #ff9999;
}

.dark-mode .markdown-theme-gothic blockquote {
  color: #b0b0b0;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ff6666;
}

.dark-mode .markdown-theme-gothic blockquote:before {
  color: rgba(255, 102, 102, 0.2);
}

.dark-mode .markdown-theme-gothic code {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-gothic pre {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ff6666;
}

.dark-mode .markdown-theme-gothic img {
  border: 5px solid #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dark-mode .markdown-theme-gothic hr {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.dark-mode .markdown-theme-gothic table {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-gothic table th,
.dark-mode .markdown-theme-gothic table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-gothic table th {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .markdown-theme-gothic table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
} 